#include "stdio.h"

void binary(int n)
{
    int i=0,a[32];
    while (n>0)
    {
        a[i]=n%2;
        i=i+1;
        n=n/2;
    }
    for(i--;i>=0;i--)
        printf("%d",a[i]);
}

int main()
{
    int n;
    scanf("%d", &n);
    binary(n);
    return 0;
}
